import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//1.全局引入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//2.引入清除全局样式
import './assets/css/base.css';

//3.注册全局组件
import common from "./common/index";
for(let attr in common){
  Vue.component(attr,common[attr])
}

//4.定义全局变量
Vue.prototype.$baseUrl = "http://localhost:3000"

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
